var events=require("events");
var util=require("util");
var Emitter=events.EventEmitter;
function Radio(obj) {
    Emitter.call(this);
    this.type=obj.type;
    this.num=obj.num;
}
// Radio.prototype=Emitter.prototype;
Radio.prototype.play=function () {
    console.log(this.type+"   "+this.num+"opened");
};
Radio.prototype.stop=function () {
    console.log(this.type+"   "+this.num+"stoped");
};
util.inherits(Radio,Emitter);
module.exports=Radio;
